<h3>Danh sách tin tức</h3>
<table cellpadding="0" cellspacing="0">
    <?php $number = 0;
    foreach ($news as $news_item): ?>
        <tr <?php if ($number % 2 != 0)
            echo 'class="odd"'; ?> >
            <td><?= $news_item->tieu_de; ?></td>
            <td class="action">
                <a href="<?= base_url() ?>tin_tuc/xem/<?= $news_item->id; ?>" class="view">Xem</a>
                <a href="<?= $link ?>/sua/<?= $news_item->id; ?>" class="edit">Sửa</a>
                <a href="<?= $link ?>/xoa/<?= $news_item->id; ?>" class="delete">Xóa</a>
            </td>
        </tr>
    <?php $number++;
    endforeach ?>
</table>

<?php echo form_open(base_url()."ql/noi_dung/tin_tuc/them") ?><!--<form action="<?=base_url()."ql/noi_dung/tin_tuc/them"?>" method="POST" class="jNice">-->
    <h3>Thêm tin tức</h3>
    <fieldset>
        <p><label>Tiêu đề:</label><input type="text" name="tieu_de" class="text-long" /></p>
        <!--
        <p><label>Sample label:</label><input type="text" class="text-medium" /><input type="text" class="text-small" /><input type="text" class="text-small" /></p>
        <p><label>Sample label:</label>
            <select>
                <option>Select one</option>
                <option>Select two</option>
                <option>Select tree</option>
                <option>Select one</option>
                <option>Select two</option>
                <option>Select tree</option>
            </select>
        </p>-->
        <p><label>Tóm tắt:</label><textarea name="tom_tat" rows="1" cols="1"></textarea></p>
        <p><label>Nội dung:</label><textarea name="noi_dung" rows="1" cols="1"></textarea></p>
        <input type="submit" name="mysubmit" value="Đăng lên" />
    </fieldset>
<?php echo form_close(); ?><!--</form>-->